//
//  BaseImageInfo.m
//  OTOClient
//
//  Created by Suny on 15/4/6.
//  Copyright (c) 2015年 Suny. All rights reserved.
//

#import "BaseImageInfo.h"

@implementation BaseImageInfo

- (NSString *)imageHolderString
{
	if (_imageHolderString)
	{
		return _imageHolderString;
	}
	else
	{
		return @"default_04";
	}
}

- (id)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self)
    {
        self.idString            = [coder decodeObjectForKey:@"self.idString"];
        self.imageHolderString   = [coder decodeObjectForKey:@"self.imageHolderString"];
        self.imageUrlString      = [coder decodeObjectForKey:@"self.imageUrlString"];
        self.thumbImageUrlString = [coder decodeObjectForKey:@"self.thumbImageUrlString"];
        self.descriptionString   = [coder decodeObjectForKey:@"self.descriptionString"];
    }

    return self;
}

- (void)encodeWithCoder:(NSCoder *)coder
{
    [super encodeWithCoder:coder];
    [coder encodeObject:self.idString
                 forKey:@"self.idString"];
    [coder encodeObject:self.imageHolderString
                 forKey:@"self.imageHolderString"];
    [coder encodeObject:self.imageUrlString
                 forKey:@"self.imageUrlString"];
    [coder encodeObject:self.thumbImageUrlString
                 forKey:@"self.thumbImageUrlString"];
    [coder encodeObject:self.descriptionString
                 forKey:@"self.descriptionString"];
}


@end
